<name>Marge Blair</name>
<profession>Taverner</profession>
<dialogue>
  <greeting>
    <reply>
      <text>If you want something said, ask a man; if you want something done, ask a woman. How can I help you?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>A glass of wine would be nice, after our travels.</text>
      <npc>
        <reply>
          <if><gold>1</gold></if>
          <text>Coming up, [race].</text>
          <script><gold>-1</gold></script>
          <return>main</return> 
        </reply>
        <reply>
          <text>I'm sorry, [race], but you spent your last penny.</text>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><gold>2</gold></if>
      <text>Join us for a drink and share your latest insights with us!</text>
      <npc>
        <reply>
          <if><random>60</random></if>
          <text>Standing in the middle of the road is very dangerous. You get knocked down by the traffic from both sides.</text>
          <script><gold>-2</gold></script>
          <return>main</return>
        </reply>
        <reply>
          <if><random>80</random></if>
          <text>Watch out for the Evil Eye. There is no meeting of minds, no point of understanding with such terror. Just a choice: Defeat it or be defeated by it. And defeat it we must.</text>
          <script><gold>-2</gold></script>
          <return>main</return>
        </reply>
        <reply>
          <if><random>120</random></if>
          <text>Any woman who understands the problems of running a home will be nearer to understanding the problems of running a goaters fair.</text>
          <script><gold>-2</gold></script>
          <return>main</return>
        </reply>
        <reply>
          <text>Discipline yourself to do what you know is right and important. Although difficult, it is the highroad to pride, self-esteem, and personal satisfaction.</text>
          <script><gold>-2</gold></script>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><food>!20</food></if>
      <text>We would like to buy some food.</text>
      <npc>
        <reply>
          <if><gold>5</gold></if>
          <text>There you go, [gender]!</text>
          <script>
            <gold>-5</gold>
            <food>5</food>
          </script>
          <return>main</return>
        </reply>
        <reply>
          <text>You don't have the 5 gold, [gender].</text>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <text>We wish a room for a good, restful sleep!</text>
      <npc>
        <reply>
          <if><gold>30</gold></if>
          <script>
            <gold>-30</gold>
            <rest>tavern</rest>
          </script>
          <return>exit</return>
        </reply>
        <reply>
          <text>You can't afford a room.</text>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><key>taverngamebooked</key></if>
      <text>Would you like to play a game of Mages and Minions?</text>
      <npc>
        <reply>
          <text>I don't play, [name], but you can ask my father.</text>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return>
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>